﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Kaiser.Modules.Cubic.Repositories
{
    public class RepositoriesFactory
    {
        public static IAdvertRepositorie CreateIAdvertRepositorie()
        {
            return DependencyResolver.Current.GetService<IAdvertRepositorie>();
        }

        public static IAdvertSpaceRepositorie CreateIAdvertSpaceRepositorie()
        {
            return DependencyResolver.Current.GetService<IAdvertSpaceRepositorie>();
        }

        public static INewsRepositorie CreateINewsRepositorie()
        {
            return DependencyResolver.Current.GetService<INewsRepositorie>();
        }

        public static IMessageRepositorie CreateIMessageRepositorie() 
        {
            return DependencyResolver.Current.GetService<IMessageRepositorie>();
        }
    }
}
